<?php
	function dbConnect() {
		if (mysql_connect("internal-db.s14520.gridserver.com", "db14520_olsi", "shqiperia")) {
			if(mysql_select_db("db14520_kindlence")) {
			} else {
				echo 'ERROR: D02';
				exit;
				}
		} else {
			echo 'ERROR: D01';
			exit;
		}
	}
	
	function query($sql) {	
		if (mysql_query($sql)) return true;
		return false;
	}
	
	function getData($sql) {	
		if ($r = mysql_query($sql)) {	
			$records = array();
			while ($record = mysql_fetch_array($r))	array_push($records,$record);
			return $records;
		}
		return false;
	}
	
	 
	
?>